﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{  


    interface Iswim {
        void swim();
    }
    interface Iclimb {
        void climb();
    }
    class animal

    {
        public string name { get; set; }
        public animal(string name) {
            this.name = name;
        }
        public virtual void eat() {
            Console.WriteLine($"{name}会吃");
        }
        
    }
}
